home *** CD-ROM | disk | FTP | other *** search
/ CD BIT 75 / CD BIT 75.iso / Software / ooo / f_0020 / sbasic.jar / text / sbasic / common / 03103600.xml < prev    next >
Encoding:
Extensible Markup Language  |  2003-08-01  |  12.2 KB  |  117 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>TypeName Function; VarType Function[Runtime]</title><meta name="filename" content="text/sbasic/common/03103600"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:6.001cm;}
  8.         td.Tabelle1B2{
  9.                 }
  10.         p.P1{
  11.                 }
  12.         span.T1{
  13.                 font-weight:bold;}
  14.         </style></head><body>
  15.   
  16.   
  17.   <help:paragraphinfo state="E" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="typename" xmlns:help="http://openoffice.org/2000/help">
  18.   <p class="Head1"><help:paragraphinfo state="U" number="1"/><help:key-word value="TypeName; function" tag="kw66391_1"/><help:link Id="66391">TypeName Function; VarType Function[Runtime]</help:link></p>
  19.   <p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Returns a string (TypeName) or a numeric value (VarType) that contains information for a variable.</p>
  20.   <help:paragraphinfo state="E"/></help:to-be-embedded>
  21.   <p class="Head2"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/>Syntax:</p>
  22.   <p class="Paragraph"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>TypeName (Variable)VarType (Variable)</p>
  23.   <p class="Head2"><help:paragraphinfo state="U" number="5" xmlns:help="http://openoffice.org/2000/help"/>Return value:</p>
  24.   <p class="Paragraph"><help:paragraphinfo state="U" number="6" xmlns:help="http://openoffice.org/2000/help"/>String; Integer</p>
  25.   <p class="Head2"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/>Parameters:</p>
  26.   <p class="Paragraph"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Variable:</span> The variable that you want to determine the type of. You can use the following values:</p>
  27.   <table><tr class=""><th style="text-align:left;"><span class="Tabelle1A">
  28.       <p class="TextInTable"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/>key word</p>
  29.      </span></th><th style="text-align:left;"><span class="Tabelle1A">
  30.       <p class="TextInTable"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>VarType</p>
  31.      </span></th><th style="text-align:left;"><span class="Tabelle1A">
  32.       <p class="TextInTable"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>Variable type</p>
  33.      </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  34.      <p class="TextInTable"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>Boolean</p>
  35.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  36.      <p class="TextInTable"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>11</p>
  37.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  38.      <p class="TextInTable"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>Boolean variable</p>
  39.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  40.      <p class="TextInTable"><help:paragraphinfo state="U" number="15" xmlns:help="http://openoffice.org/2000/help"/>Date</p>
  41.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  42.      <p class="TextInTable"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>7</p>
  43.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  44.      <p class="TextInTable"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>Date variable</p>
  45.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  46.      <p class="TextInTable"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>Double</p>
  47.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  48.      <p class="TextInTable"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>5</p>
  49.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  50.      <p class="TextInTable"><help:paragraphinfo state="U" number="20" xmlns:help="http://openoffice.org/2000/help"/>Double floating point variable</p>
  51.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  52.      <p class="TextInTable"><help:paragraphinfo state="U" number="21" xmlns:help="http://openoffice.org/2000/help"/>Integer</p>
  53.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  54.      <p class="TextInTable"><help:paragraphinfo state="U" number="22" xmlns:help="http://openoffice.org/2000/help"/>2</p>
  55.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  56.      <p class="TextInTable"><help:paragraphinfo state="U" number="23" xmlns:help="http://openoffice.org/2000/help"/>Integer variable</p>
  57.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  58.      <p class="TextInTable"><help:paragraphinfo state="U" number="24" xmlns:help="http://openoffice.org/2000/help"/>Long</p>
  59.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  60.      <p class="TextInTable"><help:paragraphinfo state="U" number="25" xmlns:help="http://openoffice.org/2000/help"/>3</p>
  61.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  62.      <p class="TextInTable"><help:paragraphinfo state="U" number="26" xmlns:help="http://openoffice.org/2000/help"/>Long integer variable</p>
  63.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  64.      <p class="TextInTable"><help:paragraphinfo state="U" number="27" xmlns:help="http://openoffice.org/2000/help"/>Object</p>
  65.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  66.      <p class="TextInTable"><help:paragraphinfo state="U" number="28" xmlns:help="http://openoffice.org/2000/help"/>9</p>
  67.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  68.      <p class="TextInTable"><help:paragraphinfo state="U" number="29" xmlns:help="http://openoffice.org/2000/help"/>Object variable</p>
  69.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  70.      <p class="TextInTable"><help:paragraphinfo state="U" number="30" xmlns:help="http://openoffice.org/2000/help"/>Single</p>
  71.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  72.      <p class="TextInTable"><help:paragraphinfo state="U" number="31" xmlns:help="http://openoffice.org/2000/help"/>4</p>
  73.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  74.      <p class="TextInTable"><help:paragraphinfo state="U" number="32" xmlns:help="http://openoffice.org/2000/help"/>Single floating-point variable</p>
  75.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  76.      <p class="TextInTable"><help:paragraphinfo state="U" number="33" xmlns:help="http://openoffice.org/2000/help"/>String</p>
  77.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  78.      <p class="TextInTable"><help:paragraphinfo state="U" number="34" xmlns:help="http://openoffice.org/2000/help"/>8</p>
  79.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  80.      <p class="TextInTable"><help:paragraphinfo state="U" number="35" xmlns:help="http://openoffice.org/2000/help"/>String variable</p>
  81.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  82.      <p class="TextInTable"><help:paragraphinfo state="U" number="36" xmlns:help="http://openoffice.org/2000/help"/>Variant</p>
  83.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  84.      <p class="TextInTable"><help:paragraphinfo state="U" number="37" xmlns:help="http://openoffice.org/2000/help"/>12</p>
  85.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  86.      <p class="TextInTable"><help:paragraphinfo state="U" number="38" xmlns:help="http://openoffice.org/2000/help"/>Variant variable (can contain all types specified by the definition)</p>
  87.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  88.      <p class="TextInTable"><help:paragraphinfo state="U" number="39" xmlns:help="http://openoffice.org/2000/help"/>Empty</p>
  89.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  90.      <p class="TextInTable"><help:paragraphinfo state="U" number="40" xmlns:help="http://openoffice.org/2000/help"/>0</p>
  91.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  92.      <p class="TextInTable"><help:paragraphinfo state="U" number="41" xmlns:help="http://openoffice.org/2000/help"/>Variable is not initialized</p>
  93.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  94.      <p class="TextInTable"><help:paragraphinfo state="U" number="42" xmlns:help="http://openoffice.org/2000/help"/>Null</p>
  95.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1A">
  96.      <p class="TextInTable"><help:paragraphinfo state="U" number="43" xmlns:help="http://openoffice.org/2000/help"/>1</p>
  97.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  98.      <p class="TextInTable"><help:paragraphinfo state="U" number="44" xmlns:help="http://openoffice.org/2000/help"/>No valid data</p>
  99.     </span></td></tr></table>
  100.   <p class="Paragraph"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="66475" Eid="errorcode" xmlns:help="http://openoffice.org/2000/help"/></p>
  101.   <p class="Paragraph"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="66475" Eid="err5" xmlns:help="http://openoffice.org/2000/help"/></p>
  102.   <p class="Head2"><help:paragraphinfo state="U" number="45" xmlns:help="http://openoffice.org/2000/help"/>Example:</p>
  103.   <p class="PropText"><help:paragraphinfo state="U" number="46" xmlns:help="http://openoffice.org/2000/help"/>Sub ExampleType</p>
  104.   <p class="PropText"><help:paragraphinfo state="U" number="47" xmlns:help="http://openoffice.org/2000/help"/>Dim iVar As Integer</p>
  105.   <p class="PropText"><help:paragraphinfo state="U" number="48" xmlns:help="http://openoffice.org/2000/help"/>Dim sVar As String</p>
  106.   <p class="PropText"><help:paragraphinfo state="U" number="49" xmlns:help="http://openoffice.org/2000/help"/>Dim siVar As Single</p>
  107.   <p class="PropText"><help:paragraphinfo state="U" number="50" xmlns:help="http://openoffice.org/2000/help"/>Dim dVar As Double</p>
  108.   <p class="PropText"><help:paragraphinfo state="U" number="51" xmlns:help="http://openoffice.org/2000/help"/>Dim bVar As Boolean</p>
  109.   <p class="PropText"><help:paragraphinfo state="U" number="52" xmlns:help="http://openoffice.org/2000/help"/>Dim lVar As Long</p>
  110.   <p class="PropText"><help:paragraphinfo state="U" number="53" xmlns:help="http://openoffice.org/2000/help"/>Msgbox TypeName(iVar) & " " & VarType(iVar) & Chr(13) &_</p>
  111.   <p class="PropText"><help:paragraphinfo state="U" number="54" xmlns:help="http://openoffice.org/2000/help"/>TypeName(sVar) & " " & VarType(dVar) & Chr(13) &_</p>
  112.   <p class="PropText"><help:paragraphinfo state="U" number="55" xmlns:help="http://openoffice.org/2000/help"/>TypeName(siVar) & " " & VarType(siVar) & Chr(13) &_</p>
  113.   <p class="PropText"><help:paragraphinfo state="U" number="56" xmlns:help="http://openoffice.org/2000/help"/>TypeName(dVar) & " " & VarType(dVar) & Chr(13) &_</p>
  114.   <p class="PropText"><help:paragraphinfo state="U" number="57" xmlns:help="http://openoffice.org/2000/help"/>TypeName(bVar) & " " & VarType(bVar) & Chr(13) &_</p>
  115.   <p class="PropText"><help:paragraphinfo state="U" number="58" xmlns:help="http://openoffice.org/2000/help"/>TypeName(lVar) & " " & VarType(lVar),0,"Some types in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic"</p>
  116.   <p class="PropText"><help:paragraphinfo state="U" number="59" xmlns:help="http://openoffice.org/2000/help"/>end Sub</p>
  117.  </body></html>